import axios from '../utils/request'

// 获取轮播图数据
export function getBannerList(){
    return axios({
        url: '/banner/list'
    })
}

// 删除单条轮播图
export function delBannerFn(data){
    return axios({
        url: '/banner/delete',
        data
    })
}

// 添加轮播图的函数
export function addBannerFn(data){
    return axios({
        url: '/banner/add',
        method: 'post',
        data
    })
}